<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>Listagem de condomínios</h3>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
				<?php if( isset($msg) ){ ?>
					
					<div class="notification <?php echo $msgClass; ?> png_bg">
						<a href="#" class="close"><img src="<?php echo Kohana::$base_url; ?>/resources/images/icons/cross_grey_small.png" title="Close this notification" alt="close"></a>
						<div>
							<?php echo $msg; ?>
						</div>
					</div>
				
				<?php } ?>
					
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
						
						<table>
							
							<thead>
								<tr>
								   <th><input class="check-all" type="checkbox" /></th>
								   <th>Nome</th>
								   <th>Cidade</th>
								   <th>UF</th>
								   <th>CEP</th>
								   <th>Ações</th>
								</tr>
								
							</thead>
						 
							<tfoot>
								<tr>
									<td colspan="6">
										
										<?php 
											// Pagination
											echo $pagination->render();
											//print_r($pagination); 
										?>
										
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
						 
							<tbody>
								<?php foreach($condominios as $condominio):
										$action = 'config';
										if( $condominio->estrutura_id != 0 )
											$action = 'adm';
										?>
										<tr>
											<td><input type="checkbox" /></td>
											<td><?=$condominio->nome?></td>
											<td><?=$condominio->cidade?></td>
											<td><?=$condominio->estado?></td>
											<td><?=$condominio->cep?></td>
											<td>
												<!-- Icons -->
												<?php 
												$parametersJS = $condominio->id.",'".Request::current()->controller()."','".Kohana::$base_url."'";
													if( isset($condominio_id) )
														$parametersJS .= ",".$condominio_id;
												?>
												 <a onclick="return editing(<?=$parametersJS?>);" href="javascript:void(0);" title="Editar"><img src="/lisuraadm/resources/images/icons/pencil.png" alt="Editar" /></a>
												 <a onclick="return confirmaDel(<?=$parametersJS?>);" href="javascript:void(0);" title="Excluir"><img src="<?php echo Kohana::$base_url; ?>resources/images/icons/cross.png" alt="Excluir" /></a> 
												 <a href="<?php echo Kohana::$base_url.Request::current()->controller()."/".$action."/".$condominio->id; ?>" title="Configurações"><img src="<?php echo Kohana::$base_url; ?>resources/images/icons/hammer_screwdriver.png" alt="Comfigurações" /></a>
											</td>
										</tr>
								<?php endforeach ?>
							</tbody>
							
						</table>
						
					</div> <!-- End #tab1 -->
					
					
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
